package com.ruantu.clothing.dao;

import com.ruantu.clothing.entity.KeHu;
import com.ruantu.clothing.entity.Pifashang;

import java.util.List;
import java.util.Map;

public interface PifashangMapper {

    int deleteByPrimaryKey(String id);

    int insert(Pifashang record);

    int insertSelective(Pifashang record);

    Pifashang selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Pifashang record);

    int updateByPrimaryKey(Pifashang record);

    /**
     * 查询所有批发商
     *
     * @return
     */
    List<Pifashang> findList(Map<String, Object> map);

    int findListCount(Map<String, Object> map);

    /**
     * 删除批发商
     *
     * @param pifashang
     * @return
     */
    int updateDeLFlag(Pifashang pifashang);

    /**
     * 查询批发商数量
     *
     * @param pifashang
     * @return
     */
    int findPifashangByName(Pifashang pifashang);

    /**
     * 查询批发商根据id
     *
     * @param pifashang
     * @return
     */
    Pifashang findPifashangById(Pifashang pifashang);

    /***
     * 获得所有批发商
     * @param map
     * @return
     */
    List<Pifashang> findAllPFS(Map<String,Object> map);

    /***
     * 获得所属客户根据省份，总部和分公司获得所有
     * @param map
     * @return
     */
    List<Pifashang> selectAllPFSForJGLX(Map<String,Object> map);



}